↳ Prolog
↳ PrologToPiTRSProof
ordered_in_g([]) → ordered_out_g([])
ordered_in_g(.(X, [])) → ordered_out_g(.(X, []))
ordered_in_g(.(X, .(Y, Xs))) → U1_g(X, Y, Xs, less_in_gg(X, s(Y)))
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U3_gg(X, Y, less_in_gg(X, Y))
U3_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
U1_g(X, Y, Xs, less_out_gg(X, s(Y))) → U2_g(X, Y, Xs, ordered_in_g(.(Y, Xs)))
U2_g(X, Y, Xs, ordered_out_g(.(Y, Xs))) → ordered_out_g(.(X, .(Y, Xs)))
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
ordered_in_g([]) → ordered_out_g([])
ordered_in_g(.(X, [])) → ordered_out_g(.(X, []))
ordered_in_g(.(X, .(Y, Xs))) → U1_g(X, Y, Xs, less_in_gg(X, s(Y)))
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U3_gg(X, Y, less_in_gg(X, Y))
U3_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
U1_g(X, Y, Xs, less_out_gg(X, s(Y))) → U2_g(X, Y, Xs, ordered_in_g(.(Y, Xs)))
U2_g(X, Y, Xs, ordered_out_g(.(Y, Xs))) → ordered_out_g(.(X, .(Y, Xs)))
ORDERED_IN_G(.(X, .(Y, Xs))) → U1_G(X, Y, Xs, less_in_gg(X, s(Y)))
ORDERED_IN_G(.(X, .(Y, Xs))) → LESS_IN_GG(X, s(Y))
LESS_IN_GG(s(X), s(Y)) → U3_GG(X, Y, less_in_gg(X, Y))
LESS_IN_GG(s(X), s(Y)) → LESS_IN_GG(X, Y)
U1_G(X, Y, Xs, less_out_gg(X, s(Y))) → U2_G(X, Y, Xs, ordered_in_g(.(Y, Xs)))
U1_G(X, Y, Xs, less_out_gg(X, s(Y))) → ORDERED_IN_G(.(Y, Xs))
ordered_in_g([]) → ordered_out_g([])
ordered_in_g(.(X, [])) → ordered_out_g(.(X, []))
ordered_in_g(.(X, .(Y, Xs))) → U1_g(X, Y, Xs, less_in_gg(X, s(Y)))
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U3_gg(X, Y, less_in_gg(X, Y))
U3_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
U1_g(X, Y, Xs, less_out_gg(X, s(Y))) → U2_g(X, Y, Xs, ordered_in_g(.(Y, Xs)))
U2_g(X, Y, Xs, ordered_out_g(.(Y, Xs))) → ordered_out_g(.(X, .(Y, Xs)))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
ORDERED_IN_G(.(X, .(Y, Xs))) → U1_G(X, Y, Xs, less_in_gg(X, s(Y)))
ORDERED_IN_G(.(X, .(Y, Xs))) → LESS_IN_GG(X, s(Y))
LESS_IN_GG(s(X), s(Y)) → U3_GG(X, Y, less_in_gg(X, Y))
LESS_IN_GG(s(X), s(Y)) → LESS_IN_GG(X, Y)
U1_G(X, Y, Xs, less_out_gg(X, s(Y))) → U2_G(X, Y, Xs, ordered_in_g(.(Y, Xs)))
U1_G(X, Y, Xs, less_out_gg(X, s(Y))) → ORDERED_IN_G(.(Y, Xs))
ordered_in_g([]) → ordered_out_g([])
ordered_in_g(.(X, [])) → ordered_out_g(.(X, []))
ordered_in_g(.(X, .(Y, Xs))) → U1_g(X, Y, Xs, less_in_gg(X, s(Y)))
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U3_gg(X, Y, less_in_gg(X, Y))
U3_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
U1_g(X, Y, Xs, less_out_gg(X, s(Y))) → U2_g(X, Y, Xs, ordered_in_g(.(Y, Xs)))
U2_g(X, Y, Xs, ordered_out_g(.(Y, Xs))) → ordered_out_g(.(X, .(Y, Xs)))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
LESS_IN_GG(s(X), s(Y)) → LESS_IN_GG(X, Y)
ordered_in_g([]) → ordered_out_g([])
ordered_in_g(.(X, [])) → ordered_out_g(.(X, []))
ordered_in_g(.(X, .(Y, Xs))) → U1_g(X, Y, Xs, less_in_gg(X, s(Y)))
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U3_gg(X, Y, less_in_gg(X, Y))
U3_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
U1_g(X, Y, Xs, less_out_gg(X, s(Y))) → U2_g(X, Y, Xs, ordered_in_g(.(Y, Xs)))
U2_g(X, Y, Xs, ordered_out_g(.(Y, Xs))) → ordered_out_g(.(X, .(Y, Xs)))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ PiDP
LESS_IN_GG(s(X), s(Y)) → LESS_IN_GG(X, Y)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
↳ PiDP
LESS_IN_GG(s(X), s(Y)) → LESS_IN_GG(X, Y)
From the DPs we obtained the following set of size-change graphs:
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
U1_G(X, Y, Xs, less_out_gg(X, s(Y))) → ORDERED_IN_G(.(Y, Xs))
ORDERED_IN_G(.(X, .(Y, Xs))) → U1_G(X, Y, Xs, less_in_gg(X, s(Y)))
ordered_in_g([]) → ordered_out_g([])
ordered_in_g(.(X, [])) → ordered_out_g(.(X, []))
ordered_in_g(.(X, .(Y, Xs))) → U1_g(X, Y, Xs, less_in_gg(X, s(Y)))
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U3_gg(X, Y, less_in_gg(X, Y))
U3_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
U1_g(X, Y, Xs, less_out_gg(X, s(Y))) → U2_g(X, Y, Xs, ordered_in_g(.(Y, Xs)))
U2_g(X, Y, Xs, ordered_out_g(.(Y, Xs))) → ordered_out_g(.(X, .(Y, Xs)))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
U1_G(X, Y, Xs, less_out_gg(X, s(Y))) → ORDERED_IN_G(.(Y, Xs))
ORDERED_IN_G(.(X, .(Y, Xs))) → U1_G(X, Y, Xs, less_in_gg(X, s(Y)))
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U3_gg(X, Y, less_in_gg(X, Y))
U3_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ UsableRulesReductionPairsProof
U1_G(Y, Xs, less_out_gg) → ORDERED_IN_G(.(Y, Xs))
ORDERED_IN_G(.(X, .(Y, Xs))) → U1_G(Y, Xs, less_in_gg(X, s(Y)))
less_in_gg(0, s(X)) → less_out_gg
less_in_gg(s(X), s(Y)) → U3_gg(less_in_gg(X, Y))
U3_gg(less_out_gg) → less_out_gg
less_in_gg(x0, x1)
U3_gg(x0)
Used ordering: POLO with Polynomial interpretation [25]:
less_in_gg(0, s(X)) → less_out_gg
POL(.(x1, x2)) = 2·x1 + 2·x2
POL(0) = 2
POL(ORDERED_IN_G(x1)) = 1 + x1
POL(U1_G(x1, x2, x3)) = 1 + 2·x1 + 2·x2 + 2·x3
POL(U3_gg(x1)) = x1
POL(less_in_gg(x1, x2)) = x1 + x2
POL(less_out_gg) = 0
POL(s(x1)) = x1
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ UsableRulesReductionPairsProof
↳ QDP
↳ RuleRemovalProof
U1_G(Y, Xs, less_out_gg) → ORDERED_IN_G(.(Y, Xs))
ORDERED_IN_G(.(X, .(Y, Xs))) → U1_G(Y, Xs, less_in_gg(X, s(Y)))
less_in_gg(s(X), s(Y)) → U3_gg(less_in_gg(X, Y))
U3_gg(less_out_gg) → less_out_gg
less_in_gg(x0, x1)
U3_gg(x0)
U1_G(Y, Xs, less_out_gg) → ORDERED_IN_G(.(Y, Xs))
U3_gg(less_out_gg) → less_out_gg
POL(.(x1, x2)) = 2·x1 + 2·x2
POL(ORDERED_IN_G(x1)) = 1 + x1
POL(U1_G(x1, x2, x3)) = 2·x1 + 2·x2 + x3
POL(U3_gg(x1)) = 2 + x1
POL(less_in_gg(x1, x2)) = x1 + x2
POL(less_out_gg) = 2
POL(s(x1)) = 1 + x1
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ UsableRulesReductionPairsProof
↳ QDP
↳ RuleRemovalProof
↳ QDP
↳ DependencyGraphProof
ORDERED_IN_G(.(X, .(Y, Xs))) → U1_G(Y, Xs, less_in_gg(X, s(Y)))
less_in_gg(s(X), s(Y)) → U3_gg(less_in_gg(X, Y))
less_in_gg(x0, x1)
U3_gg(x0)